package cpr.data;

import java.util.Comparator;

import cpr.Utils;

public class SplitClusterComparator implements Comparator {
	public int compare(Object o1, Object o2) {
		SplitCluster s1 = (SplitCluster)o1;
		SplitCluster s2 = (SplitCluster)o2;
		int s = s2.getCounter()-s1.getCounter();
		if (s!=0) return s;
		return Utils.compare(s1.aRule, s2.aRule, s1.aVector, s2.aVector);//
		//return s1.getAccordingToRule()-s2.getAccordingToRule();
	}
}